import http from '@/utils/request.js'

export default {
    list: {
        name: '获取活动列表',
        url: `${import.meta.env.VITE_API_URL}/ballactive/list/page`,
        async get (data) {
            return await http.get(this.url, data)
        }
    },

    add: {
        name: '添加活动',
        url: `${import.meta.env.VITE_API_URL}/ballactive/add`,
        async post (data) {
            return await http.post(this.url, data)
        }
    },

    update: {
        name: '更新活动',
        url: `${import.meta.env.VITE_API_URL}/ballactive/update`,
        async post (data) {
            return await http.post(this.url, data)
        }
    },

    delete: {
        name: '删除活动',
        url: `${import.meta.env.VITE_API_URL}/ballactive/delete`,
        async post (data) {
            return await http.post(this.url, data)
        }
    }
}